export default {
    mounted(el) {
        for (let i = 0; i < el.children.length; i++) {
            if (i > 0) el.children[i].style.display = 'none'
        }
        el.children[0].addEventListener('mouseenter', () => {
            for (let i = 0; i < el.children.length; i++) {
                if (i > 0) el.children[i].style.display = 'block'
            }
        })
        el.children[0].addEventListener('mouseleave', () => {
            for (let i = 0; i < el.children.length; i++) {
                if (i > 0) el.children[i].style.display = 'none'
            }
        })
    }
}